package com.wust.supermarket.utils;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeUtil {
    public static String InstockInitialization(){
        int r=(int)(Math.random()*(9999-1000)+1000);
        DateFormat dateFormat = new SimpleDateFormat("yyyyMMddhhmmss");
        String result = dateFormat.format(new Date()) + r;
        return  result;
    }
}
